<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Timkiem extends CI_Controller {
    public $data;
    function __construct()
	{      
		parent::__construct();
        $this->load->model('m_timkiem');
        $this->load->model('m_nganh');//load model m_nganh
		$this->data = array (
			'nganh'       => $this->m_nganh->get_nganh()
		);
	}
    public function index()
	{
	    $keyword    =   $this->input->post('keyword');
        $this->data['khoahoc']    =   $this->m_timkiem->search($keyword);
        $this->load->view('kq_search',$this->data);
	}
}